<div class="users form form_login">
<?php echo $this->Form->create('User');?>
<?php 
	echo $this->Form->create('User');
	echo $this->Session->flash(); 
?>
	<fieldset>
		<legend><?php __('Đăng ký tài khoản'); ?></legend>
	<?php
		echo $this->Form->input('username', array('label'=>'Tên đăng nhập','class'=>"required"));
		echo $this->Form->input('password_new', array('type'=>'password','label'=>'Mật khẩu','class'=>"required", 'minlength'=>"4"));
		echo $this->Form->input('name', array('label'=>'Tên','class'=>"required", 'minlength'=>"4"));//class="required" minlength="2"
		echo $this->Form->input('email', array('label'=>'Email','class'=>'required email'));
		echo $this->Form->input('address', array('label'=>'Địa chỉ'));

	?>
	</fieldset>
<?php echo $this->Form->end(__('Đăng ký mới', true));?>
		<div class="new_pass">
			<a class="from_login_register" href="<?php echo $this->webroot;?>/">Trang chủ</a>&nbsp;|&nbsp;
			<a class="from_login_register" href="<?php echo $this->webroot;?>/users/login">Đăng nhập</a>
		</div>
  <script>
  $(document).ready(function(){
    $("#UserNewUserForm").validate();
  });
  </script>
</div>